// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@use "refactor/common-refactor.scss" as deprecated;

.value-saturation-selector {
  background-color: rgba(var(--hue-rgb));
  position: relative;
  height: deprecated.$s-140;
  width: 100%;
  margin-top: deprecated.$s-12;
  margin-bottom: deprecated.$s-12;
  cursor: pointer;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
  }

  &::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
  }
}

.handler {
  @extend .colorpicker-handler;
  height: deprecated.$s-16;
  width: deprecated.$s-16;
  border: deprecated.$s-2 solid var(--colorpicker-handlers-color);
}

.shade-selector {
  display: flex;
  gap: deprecated.$s-4;
  height: deprecated.$s-52;
  cursor: pointer;
}

.sliders-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}
